<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>这是</title>
		<link rel="stylesheet" type="text/css" href="{$webSite}public/css/base.css"/>
	</head>
	<style>
		/*******	主体导航栏  a_head_main 	**********/
		.a_head_main{
			/* width:1000px; */
			width:82%;
			min-height:650px;
			float:left;
			margin-left:180px;
			margin-top:120px;
		}
		.main_site1_head{
			/* width:1000px; */
			width:100%;
			height:50px;
			border-bottom:1px #DEEFFB solid;
			line-height:50px;
			font-size:16px;
			font-weight:bold;
			color:#09C;
		}
	
		.main_site2_form_head{
			/* width:1000px; */
			width:100%;
			height:40px;
			background:#fff;
			border-bottom:1px #DEEFFB solid;
			line-height:40px;
			
		}
		.main_site2_form_head .div1{
			width:90px;
			height:40px;
			text-align:center;
			float:left;
			margin-left:120px;
			font-size:14px;
			font-weight:bold;
		}
		.main_site2_form_head .div1 span{
			font-size:12px;
			font-weight:100;
			color:#F60;
		}
		.main_site2_form_head .div2{
			width:80px;
			height:40px;
			text-align:center;
			float:left;
			margin-left:20px;
			font-size:14px;
			font-weight:bold;
		}
		.main_site2_form_head .div3{
			width:80px;
			height:40px;
			text-align:center;
			float:left;
			margin-left:580px;
			font-size:14px;
			font-weight:bold;
		}
	
		.main_site2_form_body{
			/* width:1000px; */
			width:100%;
			height:40px;
			background:#fff;
			border-bottom:1px #DEEFFB solid;
			line-height:40px;
			
		}
		.main_site2_form_body:hover{
		
			background:#F2F9FD;
			
		}
	
		.main_site2_form_body  .put2{
			width:60px;
			margin-left:35px;
		}
		.main_site2_form_body  .put3{
			width:120px;
			margin-left:30px;
		}
		.main_site2_form_body  .put222{
			width:60px;
			margin-left:35px;
		}
		.main_site2_form_body  .put333{
			width:120px;
			margin-left:90px;
		}
		.main_site2_form_body  .put444{
			width:120px;
			margin-left:480px;
		}

		.main_site2_form_body  input:hover{
			border:1px #09C solid;
		}
		.main_site2_form_btn{
			/* width:1000px; */
			width:100%;
			height:50px;
			background:#fff;
			border-bottom:1px #DEEFFB solid;
			line-height:50px;
			margin-bottom:80px;
		}
		.main_site2_form_btn input{
			
			width:50px;
			height:25px;
			background:#7B68EE;
			color:#fff;
			font-size:14px;
			float:left;
			margin-top:10px;
			margin-left:20px;
		}
		.main_site2_form_btn  .btn{
			margin-left:80px;
		}
	</style>

	<body>
		<!-- 操作主体  a_head_main-->
		<div class="a_head_main">
			<div class="main_site1_head">版块管理</div>
		
			
			<!-- 添加 链接部分 -->
			<!-- 头部 -->
			<div class="main_site2_form_head clearFix">
				
				<div class="div1">显示顺序</div>
				<div class="div2">版块名称</div>
				<div class="div3">版主</div>
				
			</div>
			
			<!-- form表单部分 -->

			<form action="{$webSite}admin/admin/admin_category1.php" method="post" enctype="multipart/form-data">

			<!-- 父级版块parentid为0 -->
			{if $resCategory}
			{foreach $resCategory as $valParent}
				{if $valParent['parentid'] == 0 && $valParent['cisdel'] == 0}
			<div class="main_site2_form_body">
				
				<input class="put2" type="checkbox" name="arrCid[{$valParent['cid']}]" value="{$valParent['cid']}">
				
				<input class="put2" type="text" name="orderby[{$valParent['cid']}]" value="{$valParent['orderby']}">

				<input class="put3" type="text" name="classname[{$valParent['cid']}]" value="{$valParent['classname']}">
			</div>
				{/if}

			<!-- 父级cid等于子级parentid -->
				{foreach $resCategory as $valSon}
					{if $valSon['parentid'] == $valParent['cid'] && $valSon['cisdel'] == 0   &&   $valSon['parentdel'] == 0}
			<div class="main_site2_form_body">
			
				<input class="put2" type="checkbox" name="arrCid[{$valSon['cid']}]" value="{$valSon['cid']}">

				<input class="put222" type="text" name="orderby[{$valSon['cid']}]" value="{$valSon['orderby']}" maxlength="2">
			
				<input class="put333" type="text" name="classname[{$valSon['cid']}]" value="{$valSon['classname']}" maxlength="18">
		
				<input class="put444" type="text" name="compere[{$valSon['cid']}]" value="{$valSon['compere']}" maxlength="12">			
			</div>
					{/if}
				{/foreach}
			{/foreach}
			{/if}

			<!-- 父级和子级版块同时为空时隐藏 -->
			
			<div  class="main_site2_form_btn">

				<input class="btn" type="submit" value="回 收" name="categoryBtn">
				<input class="btn" type="submit" value="修 改" name="categoryBtn">
			</div>
			

			</form>
			
			
		</div>
	</body>
</html>